// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App' 
import router from './router'

import Vuex from 'vuex'
Vue.use(Vuex)

//引入vuex
import store from '../store'
//把vuex定义成全局组件
Vue.prototype.$store = store


import utils from '@/util/utils'
Vue.use(utils)

import axios from '@/util/http'
Vue.prototype.$axios = axios
import {instance} from  '@/util/http';
Vue.prototype.$instance = instance
axios.defaults.baseURL = "/zhgd"

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);


// import ECharts from 'vue-echarts'
// Vue.component('chart', ECharts)

import echarts from 'echarts'
Vue.prototype.$echarts = echarts


import { HappyScroll } from 'vue-happy-scroll'
//自定义组件名
Vue.component('happy-scroll', HappyScroll)
// 引入css
import 'vue-happy-scroll/docs/happy-scroll.css'



import 'swiper/dist/css/swiper.min.css'
import 'swiper/dist/js/swiper.min'


Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
